POV-Ray : Newsgroups : povray.binaries.images : Block coded in PovRay : Re: Block coded in PovRay Server Time
2 Aug 2024 06:20:46 EDT (-0400)
  Re: Block coded in PovRay  
From: Dre
Date: 7 Feb 2008 17:32:18
Message: <47ab86f2@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote in message 
news:47aae723@news.povray.org...
>
> I made some little adjustments to Trevor's, switching in particular the z- 
> and y-axes to standard POV-Ray orientation.
>
> Added the randomization, which - by the way - takes extra parsing time of 
> course.
>
> #declare f_hf=
> function{
>  pattern {
>    agate
>    warp {turbulence chaos}
>    scale resolution
>  }
> }
>
> #declare bloks=
> union{
>  #declare Z=1;#while (Z<=resolution*10)
>    #declare X=1;#while (X<=resolution*0.5)
>      #declare Y=1;#while (Y<=resolution*2)
>        #if (f_hf(X,Y,Z)>(1-densiti))
>          box {<-RRand(0.4,2,R),-RRand(0.4,0.5,R),-RRand(0.4,1,R)>, 
> <RRand(0.4,2,R),RRand(0.4,0.5,R),RRand(0.4,1,R)>
>            translate<X,Y,Z>
>            //pigment {rgb <RRand(0.9,1,R),RRand(0.9,1,R),RRand(0.9,1,R)>}
>          }
>        #end
>      #declare Y=Y+1;#end
>    #declare X=X+1;#end
>  #declare Z=Z+1;#end
> }
>
> Image rendered in about 10 minutes by Megapov, with default radiosity 
> (gray_threshold 0.5), resolution of 30, and chaos 2.
>
> Thomas
>
>

Hi, can I ask where the variable R comes from in the code above?

Thanks!

Cheers Dre


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.